import request from '@/utils/request'

export function getChatPage(query) {
    return request({
        url: "admin/chat/page",
        method: "get",
        params: query
    })
}

export function deleteChatByIds(ids) {
    return request({
        url: `admin/chat/delete/${Array.isArray(ids) ? ids.join(',') : ids}`,
        method: "delete"
    })
}